﻿using System.Web.Mvc;
using InnovaApp.Layers.CommonLayer.Models;
using INNOVACALL.Framework.Common.Extensions;

namespace MyCompany.Portals.MyPortal.Controllers
{
    public class CSSGController : Controller
    {
		public ActionResult Site()
		{
			CSSGModel toReturn = new CSSGModel();
			//Static cssFile
			string staticCssFileName = Server.MapPath("/Content/_Site.css");
			string staticCssFileContent = staticCssFileName.ReadContentFile();
			staticCssFileContent = "/*Innovacall Static CSS elements*/\n" + staticCssFileContent;
			staticCssFileContent = staticCssFileContent + "\n/*Innovacall Dynamic CSS elements*/\n";
			toReturn.StaticCss = staticCssFileContent;
			//toReturn.CssBloc Add CssBlocs here for example to set with and height
			Response.ContentType = "text/css";
			return View(toReturn);
		}
	}
}
